import request from "@/utils/request";

// 查询所有公告
export function findAllNotice(params) {
    return request({
        url: '/dev-api/notices/list',
        method: 'get',
        params
    });
}

// 保存公告
export function addNotice(data) {
    return request({
        url: '/dev-api/notices/save',
        method: 'post',
        data
    });
}

// 删除公告
export function deleteNotice(id) {
    return request({
        url: '/dev-api/notices/' + id,
        method: 'delete'
    });
}
